#!/bin/sh

yum -y install gcc-c++.x86_64
yum -y install gdb.x86_64
yum -y install lua-devel.x86_64
yum -y install boost-devel.x86_64
yum -y install mongo-10gen mongo-10gen-server
yum -y install pcre-devel.x86_64
yum -y install scons
yum -y install screen
yum -y install valgrind

curdir=`pwd`

wget http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-v2.0-latest.tgz
tar zxf mongodb-linux-x86_64-v2.0-latest.tgz
cd mongo-cxx-driver-v2.0 
scons install

cd $curdir
wget http://monkey.org/~provos/libevent-2.0.13-stable.tar.gz 
tar zxf libevent-2.0.13-stable.tar.gz
cd libevent-2.0.13-stable
./configure
make
make verify
make install
